function result = formatGraph(raw)
    persistent net;
    if isempty(net)
        disp('loading net')
        load net;
    end
    result = zeros(9);
    for i = 1:9
        for j = 1:9
            preds(i,j) = classify(net,raw(:,:,i,j));
            result(i,j) = double(preds(i,j)) - 1;
        end
    end
end

